# Makefile for lppf
# Copyright (C) 2007 - 2008, Daniel Ekstr�m

TARGET = lppf
OBJS = libppf.o lppf.o
CC = gcc
CFLAGS=-Wall -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
LINK = $(CC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
VPATH = ./src

.c.o:
	$(CC) $(CFLAGS) -c $(VPATH)/$*.c

all: $(TARGET)

$(TARGET): $(OBJS)
	$(LINK) -o $(TARGET) $(OBJS) $(LFLAGS)

clean:
	-rm -f $(TARGET) $(OBJS) $(DEPENDENCIES)

run:
	./$(TARGET)
